//
//  programme_robot_1AppDelegate.h
//  programme-robot-1
//
//  Created by richard on 11/09/13.
//  Copyright 2013 __MyCompanyName__. All rights reserved.
//

#import <Cocoa/Cocoa.h>
#import "NXTcommande.h"
#import "wiimoteCommande.h"

@interface programme_robot_1AppDelegate : NSObject <NSApplicationDelegate,nxtinterface,interface> {
    NSWindow *window;
	IBOutlet id message;
	IBOutlet id B1;
	IBOutlet id B2;
	IBOutlet id wiimoteWindow;
	IBOutlet id nxtWindow;

	
	IBOutlet id connectionB1OK;
	IBOutlet id adresseB1;

	IBOutlet id connectionB2OK;
	IBOutlet id adresseB2;

	NXTcommande * R1;
	NXTcommande * R2;
	wiimoteCommande *W1;
	wiimoteCommande *W2;
	
	int wiiId;//Quel WII n essaye de connecter
}

@property (assign) IBOutlet NSWindow *window;
- (IBAction)SendR1:(id)sender;
- (IBAction)SendR2:(id)sender;
- (IBAction)ConnectW1:(id)sender;
- (IBAction)ConnectW2:(id)sender;

- (IBAction)ShowWiimote:(id)sender;
- (IBAction)ConnectR1:(id)sender;
- (IBAction)ConnectR2:(id)sender;

@end
